// Buy Mee Online JavaScript Document 
// This is personal document not to share or publish



//Code of 2nd slider
$(function(){
  // find all slides
  var slides = $(&#39;.main-slide&#39;);
  // starting index
  var i = 0;
  // click listener1
  $(&#39;#main-slider-next&#39;).click(function(){
    // find next index
    // i + 1 or 0 if end of slides
    i = ++i % slides.length;
    // scroll to that index
    $(&#39;.slider-wrapper&#39;).animate(
      {&#39;left&#39; : -(slides.eq(i).position().left)},
      756
    );
  });
});

// Cart button script for empty cart
function placeorderCheck2()
{
var count2 = simpleCart.quantity();


if (count2 == 0 || count2 == -1 || count2 == -2)
{
//document.getElementById(&quot;plor2&quot;).style.display=&quot;none&quot;;
alert(&quot;CART IS EMPTY YOU CAN NOT SUBMIT YOUR ORDER IN EMPTY CART GO BACK AND FILL YOUR CART&quot;);
  window.location.href = &quot;https://buymeeonline.blogspot.in&quot;;
}
else
{
//document.getElementById(&quot;plor2&quot;).style.display=&quot;inherit&quot;;  class=&quot;simpleCart_checkout button&quot; 
document.getElementById (&quot;plor2&quot;).className = &#39;simpleCart_checkout button&#39;;
window.location.href=&quot;javascript:;&quot;;
}

}

function placeorderCheck()
{
var count = simpleCart.quantity();


if (count == 0 || count == -1 || count == -2)
{
//document.getElementById(&quot;plor&quot;).style.display=&quot;none&quot;;
alert(&quot;CART IS EMPTY YOU CAN NOT SUBMIT YOUR ORDER IN EMPTY CART&quot;);
}
else
{
//document.getElementById(&quot;plor&quot;).style.display=&quot;inherit&quot;;

window.location.href = &quot;/p/send-orders.html&quot;;
}

}





//Code for browser detection


<!--
//function DetectBrowser()

//{

  //  var browser=navigator.appName

//if (browser=="Firefox")
  //  {

    //}

   // else

    //{

      //  alert("This browser may not work properlly with this blog we suggest you to use Firefox.")

    //}

    // Check the browser is Java enabled   

//    var jEnabled = navigator.javaEnabled();

//    if (!jEnabled)

  //  {

    //    alert("Java need to be enabled for this Browser!");

   // }

    //else{

      //  alert("This Browser is Java enabled!");

  //  }  

  // }

 // Check the browser is cookie enabled 

function DetectCookieEnabled()

{

  if (document.cookie == "")

  {

    alert("Cookie needs to be enabled for this Browser!");   

  }

  else

  {
  }

}
-->
    var badIE = false;
<!--[if lt IE 5]>
<script type="text/javascript">badIE = true;</script>
<![endif]-->
<!--[if lt IE 6]>
<script type="text/javascript">badIE = true;</script>
<![endif]-->
<!--[if lt IE 7]>
<script type="text/javascript">badIE = true;</script>
<![endif]-->
<!--[if lt IE 8]>
<script type="text/javascript">badIE = true;</script>
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript">badIE = true;</script>
<![endif]-->

if (badIE == true){
    alert(&#39;This blog is not compatible with your browser, upgrade to 10 or higher otherwise use other browser!&#39;);
window.location.href = &quot;http://buymeeonlinehelpdesk.blogspot.in/p/not-compatible-with-your-browser.html&quot;
} else {
    //alert(&#39;Bueno!&#39;);
}


